<%@ Control Language="C#" %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="Syrinx.Gui.AspNet.NitobiCtls" Namespace="Syrinx.Gui.AspNet.NitobiCtls" TagPrefix="nit" %>
    <%HtmlBlock method="processList"; %>
    <div class="productlistbox">
		<table width="100%"><tr><td colspan="2">
		<h6><asp:HyperLink ID="product_title" runat="server" NavigateUrl="$navLink$" /></h6>
		</td></tr>
		<tr><td>
		<div class="mediaArea">
		    <asp:HiddenField ID="id" runat="server" />
		    <asp:HyperLink ID="product_primaryPicture_name" runat="server" BorderWidth="1px" ImageUrl="~/$product.mediaCacheName$/$imageRes$/$product.primaryPicture.name$" 
				EnableViewState="false"  NavigateUrl="$navLink$"/>
		</div>
		</td><td>
		<div class="summary">
    		<swf:ReadOnlyText ID="product_summary" runat="server" />
		</div>
		</td></tr>
		<tr><td colspan="2">
		<%Conditional on = "CurrentBizObj.quantity==0"; %>
		<div id="priceArea"><asp:Label id="_priceLbl" runat="server">Price:</asp:Label> <swf:ReadOnlyText id="product_sellPriceFormated" runat="server" />&nbsp;<swf:ReadOnlyText id="product_sellPriceDescription" runat="server" /></div>
		<%EndConditional; %>
        <div class="clearer"></div>
		<%Conditional on = "CurrentBizObj.product.quantityAvailable!=0"; %>
			<%Conditional on = "CurrentBizObj.product.quantityAvailable!=-2"; %>
				<%Conditional on = "CurrentBizObj.quantity!=0"; %>
				<table width="100%"><tr>
				<td><asp:Label ID="_r1" runat="server">Price</asp:Label></td>
				<td><asp:Label ID="_r2" runat="server">Quantity</asp:Label></td>
				<td><asp:Label ID="_r3" runat="server">Description</asp:Label></td>
				<td><asp:Label ID="_r4" runat="server">Sub Total</asp:Label></td>
				</tr><tr>
				<td><swf:ReadOnlyText id="product_sellPriceFormated" runat="server" />&nbsp;<swf:ReadOnlyText id="product_sellPriceDescription" runat="server" /></td>
				<td><asp:Label runat="server" ID="quantity"/></td>
				<td><asp:Label ID="description" runat="server" /></td>
				<td><asp:Label ID="totalFormated" runat="server" /></td>
				</tr></table>
				<%EndConditional; %>
				<%Conditional on = "CurrentBizObj.quantity==0"; %>
				<div class="cart"><nit:ActionButton runat="server" ID="addOneToCartBtn" Actions="$Parent$.AddOne" Text="Add One" TriggerParam="$id$" /></div>
				<%EndConditional; %>
			<%EndConditional; %>
			<%Conditional on = "CurrentBizObj.product.quantityAvailable==-2"; %>
				<div class="quantityArea" style="font-size:smaller">
				<asp:Label runat="server" ID="_needStart" Text="Make reservation to see availability." /></div>			
			<%EndConditional; %>
		<%EndConditional; %>
		<%Conditional on = "CurrentBizObj.product.quantityAvailable==0"; %>
			<div class="quantityArea"><asp:Label runat="server" ID="_unavail" Text="Unavailable" /></div>
		<%EndConditional; %>
		</td></tr></table>
    </div>
    <div class="clearer"></div>
    <%EndHtmlBlock; %>
